home *** CD-ROM | disk | FTP | other *** search
/ AGA Toolkit '97 / The AGA Toolkit '97.iso / text / misc / port / stripcode.txt < prev    next >
Encoding:
Text File  |  1996-09-07  |  2.0 KB  |  59 lines

  1. - We get a new byte.
  2. - If we run out of bytes, send a flush command to ANSI cleaner.
  3. - If we flushed, end conversion. All data has been written to final buffer.
  4.   Now write that buffer.
  5. - Call ANSI cleaner.
  6.   - It buffers the data and returns when it needs more.
  7.   - If it determines the data was not to be cut, it calls InterNet cleaner
  8.     on the data.
  9.   - If we get a flush command, buffering is determined right away, and
  10.     the rest of the data is either trashed or sent to IC.
  11.   - Call InterNet cleaner.
  12.     - It will buffer the data, and return when it wants more.
  13.     - If it gets enough, it determines is the line to be cut. If it isn't,
  14.       IC feeds it byte by byte to the SpaceConv routine.
  15.     - If flush, determination follows immediately, data is passed to SC,
  16.       or trashed.
  17.  
  18. - If SpaceConv gets a flush command, it determines what should be trashed
  19. and what saved, and writes that data out.
  20.  
  21.  
  22. - All modules should have a flush command to give all the buffered data
  23.   down the hierarchy.
  24.  
  25. - In IC, add an AI which remembers all the stuff that was found in the
  26. recog line, and adds it as a suggestion as long it is found in all
  27. files.
  28.  
  29. ANSI stripper:
  30. - Load a new byte.
  31. - If we have a wait second flag on:
  32.   - Check if it is "[".
  33.     - If so, set ANSI on flag.
  34.     - If not
  35.       - Set clear flag.
  36.       - Insert ESC & the new byte to buffer.
  37. - If we have clear flag
  38.   - Check if it is a ESC:
  39.     - If so, set a second part wait flag.
  40.   - If it is a $9B:
  41.     - set a ANSI on flag.
  42.   - If other, just add it to the buffer.
  43. - If we have ANSI on flag:
  44.   - If the character is a alpha.
  45.     - Set clear flag.
  46.  
  47. Internet message cleaner:
  48. - Add the new byte to internet buffer.
  49. - When the byte is an EOL, check for header:
  50.   - If Internet cut is off.
  51.     - If it starts "From":
  52.       - If the line has periods (in paths), exclamations (in paths), colons
  53.         (in time), numbers (in time & date). Activate Internet cut.
  54.     - If line starts "Path:":
  55.       - Has exclamations, periods? Activate IC.
  56.       
  57.   - If Internet cut is on:
  58.     - If the line is empty, Internet cut off.
  59.